package com.kantboot.project.auth.user.service.impl;

import com.kantboot.project.auth.user.entity.CesAuthPayNotify;
import com.kantboot.project.auth.user.entity.CesAuthWechatApplet;
import com.kantboot.project.auth.user.repository.CesAuthPayNotifyRepository;
import com.kantboot.project.auth.user.service.ICesAuthPayNotifyService;
import com.kantboot.project.security.service.ISysSettingService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class CesAuthPayNotifyServiceImpl implements ICesAuthPayNotifyService {

    @Resource
    ISysSettingService sysSettingService;
    @Resource
    CesAuthPayNotifyRepository repository;

    @Override
    public CesAuthPayNotify getDefault() {
        Long authPayNotifyId = sysSettingService.getSetting().getAuthPayNotifyId();
        CesAuthPayNotify cesAuthPayNotify = repository.findById(authPayNotifyId).get();
        return cesAuthPayNotify;
    }

}
